/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.train.dao;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author LiPengpeng
 */
public interface MsgDao {

	/**
	 * 查询
	 * @param dataMap dataMap
	 * @return 字符串
     */
	String selectBookSeat(Map<String, Object> dataMap);

	/**
	 * 添加
	 * @param orderNo orderNo
	 * @return int
     */
	int insertFailInfo(@Param("orderNo") String orderNo);

	/**
	 * 修改
	 * @param orderNo
	 * @param state
	 * @param ticketGate
     * @return
     */
	int updatePassengerState(@Param("orderNo") String orderNo, @Param("state") int state, @Param("ticketGate") String ticketGate);

	/**
	 * 修改
	 * @param orderNo
	 * @param state
     * @return
     */
	int updateOrderState(@Param("orderNo") String orderNo, @Param("state") int state);

	/**
	 * 修改
	 * @param orderNo
	 * @param state
     * @return
     */
	int updateOrderRecordState(@Param("orderNo") String orderNo, @Param("state") int state);

	/**
	 * 修改
	 * @param orderNo
	 * @param state
     * @return
     */
    int updateOldPassengerState(@Param("orderNo") String orderNo, @Param("state") int state);
}
